package com.yiboshi.rehrs.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * @author jack 2021/7/22
 */
public class IdEntity implements Serializable, IdFunction {

    private static final long serialVersionUID = 1662498001907960907L;

    @TableId(type = IdType.AUTO)
    protected Long id;

    public IdEntity() {

    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    @Override
    public String toString() {
        return org.apache.commons.lang3.builder.ToStringBuilder.reflectionToString(this);
    }

}
